Namespace - LJCNetCommon
Parameters
increment -
The amount to increment or decrement the indent count.
Returns
The current indent count.
Syntax
C# |
public Int32 AddIndent(Int32 increment = 1)
|
Changes the IndentCount by the provided value.
Example
C# |
var hb = new HTMLBuilder();
hb.AddIndent();
hb.AddText("This text is not indented.");
hb.Text("This text is indented.");
var NoIndent = false;
hb.Text("Not indented.", NoIndent);
var NoNewLine = false;
hb.Text(" No start with newline.", NoIndent, NoNewLine);
var result = hb.ToString();
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.